import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class TitleWidget extends StatefulWidget {
  const TitleWidget({Key? key}) : super(key: key);

  @override
  State<TitleWidget> createState() => _TitleWidgetState();
}

class _TitleWidgetState extends State<TitleWidget> {
  @override
  Widget build(BuildContext context) {
    return Row(
      children: [
        Image.asset(
            'assets/rili.png',
            width: 30.w,
          ),
        SizedBox(width: 5.w,),
        Container(
          width: 180.w,
          height:35.h,
          decoration: BoxDecoration(
            color: Color(0xffd1eef2),
            borderRadius: BorderRadius.all(Radius.circular(20))
          ),
          child: Row(
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
              SizedBox(width: 5.w,),
              Icon(
                Icons.search,
                color: Colors.grey,
              ),
              Expanded(
                child: Container(
                  alignment: Alignment.center,
                  child: TextField(
                    controller: null,
                    decoration: InputDecoration(
                      hintText: '薪悦生活| 电子医保',
                      border: InputBorder.none,
                      hintStyle: TextStyle(height: 1.1,fontSize: 14.sp),
                    ),
                  ),
                )
              )
            ],
          ),
        )

      ],
    );
  }
}